home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2000 September / maximum-cd-2000-09.iso / Benchmarks / Quake 3 / q3ademo.exe / Main / pak0.pk3 / botfiles / items.c < prev    next >
Encoding:
C/C++ Source or Header  |  1999-11-29  |  10.6 KB  |  464 lines

  1. //===========================================================================
  2. //
  3. // Name:            items.c
  4. // Function:        item configuration
  5. // Programmer:        Mr Elusive (MrElusive@idsoftware.com)
  6. // Last update:        1999-09-08
  7. // Tab Size:        4 (real tabs)
  8. //===========================================================================
  9.  
  10. #include "inv.h"
  11.  
  12. #define ITEM_NONE                    0
  13. #define ITEM_AMMO                    1
  14. #define ITEM_WEAPON                    2
  15. #define ITEM_HEALTH                    3
  16. #define ITEM_ARMOR                    4
  17. #define ITEM_POWERUP                5
  18. #define ITEM_KEY                    6
  19. #define ITEM_FLAG                    7
  20.  
  21. //===================================
  22. // ARMOR
  23. //===================================
  24.  
  25. iteminfo "item_armor_shard"
  26. {
  27.     name                    "Armor Shard"
  28.     model                    "models/powerups/armor/shard.md3"
  29.     modelindex                MODELINDEX_ARMORSHARD
  30.     type                    ITEM_ARMOR
  31.     index                    INVENTORY_ARMOR
  32.     respawntime            20
  33.     mins                    {-15,-15,-15}
  34.     maxs                    {15,15,15}
  35. } //end iteminfo
  36.  
  37. iteminfo "item_armor_combat"
  38. {
  39.     name                    "Armor"
  40.     model                    "models/powerups/armor/armor_yel.md3"
  41.     modelindex                MODELINDEX_ARMORCOMBAT
  42.     type                    ITEM_ARMOR
  43.     index                    INVENTORY_ARMOR
  44.     respawntime            20
  45.     mins                    {-15,-15,-15}
  46.     maxs                    {15,15,15}
  47. } //end iteminfo
  48.  
  49. iteminfo "item_armor_body"
  50. {
  51.     name                    "Heavy Armor"
  52.     model                    "models/powerups/armor/armor_red.md3"
  53.     modelindex                MODELINDEX_ARMORBODY
  54.     type                    ITEM_ARMOR
  55.     index                    INVENTORY_ARMOR
  56.     respawntime            20
  57.     mins                    {-15,-15,-15}
  58.     maxs                    {15,15,15}
  59. } //end iteminfo
  60.  
  61. //===================================
  62. // HEALTH
  63. //===================================
  64.  
  65. iteminfo "item_health_small"
  66. {
  67.     name                    "5 Health"
  68.     model                    "models/powerups/health/small_cross.md3"
  69.     modelindex                MODELINDEX_HEALTHSMALL
  70.     type                    ITEM_HEALTH
  71.     index                    INVENTORY_HEALTH
  72.     respawntime            30
  73.     mins                    {-15,-15,-15}
  74.     maxs                    {15,15,15}
  75. } //end iteminfo
  76.  
  77. iteminfo "item_health"
  78. {
  79.     name                    "25 Health"
  80.     model                    "models/powerups/health/medium_cross.md3"
  81.     modelindex                MODELINDEX_HEALTH
  82.     type                    ITEM_HEALTH
  83.     index                    INVENTORY_HEALTH
  84.     respawntime            30
  85.     mins                    {-15,-15,-15}
  86.     maxs                    {15,15,15}
  87. } //end iteminfo
  88.  
  89. iteminfo "item_health_large"
  90. {
  91.     name                    "50 Health"
  92.     model                    "models/powerups/health/large_cross.md3"
  93.     modelindex                MODELINDEX_HEALTHLARGE
  94.     type                    ITEM_HEALTH
  95.     index                    INVENTORY_HEALTH
  96.     respawntime            30
  97.     mins                    {-15,-15,-15}
  98.     maxs                    {15,15,15}
  99. } //end iteminfo
  100.  
  101. iteminfo "item_health_mega"
  102. {
  103.     name                    "Mega Health"
  104.     model                    "models/powerups/health/mega_cross.md3"
  105.     modelindex                MODELINDEX_HEALTHMEGA
  106.     type                    ITEM_HEALTH
  107.     index                    INVENTORY_HEALTH
  108.     respawntime            30
  109.     mins                    {-15,-15,-15}
  110.     maxs                    {15,15,15}
  111. } //end iteminfo
  112.  
  113. //===================================
  114. // WEAPONS
  115. //===================================
  116. //*
  117. iteminfo "weapon_gauntlet"
  118. {
  119.     name                    "Gauntlet"
  120.     model                    "models/weapons2/gauntlet/gauntlet.md3"
  121.     modelindex                MODELINDEX_GAUNTLET
  122.     type                    ITEM_WEAPON
  123.     index                    INVENTORY_GAUNTLET
  124.     respawntime            30
  125.     mins                    {-15,-15,-15}
  126.     maxs                    {15,15,15}
  127. } //end iteminfo*/
  128.  
  129. iteminfo "weapon_shotgun"
  130. {
  131.     name                    "Shotgun"
  132.     model                    "models/weapons2/shotgun/shotgun.md3"
  133.     modelindex                MODELINDEX_SHOTGUN
  134.     type                    ITEM_WEAPON
  135.     index                    INVENTORY_SHOTGUN
  136.     respawntime            30
  137.     mins                    {-15,-15,-15}
  138.     maxs                    {15,15,15}
  139. } //end iteminfo
  140.  
  141. iteminfo "weapon_machinegun"
  142. {
  143.     name                    "Machinegun"
  144.     model                    "models/weapons2/machinegun/machinegun.md3"
  145.     modelindex                MODELINDEX_MACHINEGUN
  146.     type                    ITEM_WEAPON
  147.     index                    INVENTORY_MACHINEGUN
  148.     respawntime            30
  149.     mins                    {-15,-15,-15}
  150.     maxs                    {15,15,15}
  151. } //end iteminfo
  152.  
  153. iteminfo "weapon_grenadelauncher"
  154. {
  155.     name                    "Grenade Launcher"
  156.     model                    "models/weapons2/grenadel/grenadel.md2"
  157.     modelindex                MODELINDEX_GRENADELAUNCHER
  158.     type                    ITEM_WEAPON
  159.     index                    INVENTORY_GRENADELAUNCHER
  160.     respawntime            30
  161.     mins                    {-15,-15,-15}
  162.     maxs                    {15,15,15}
  163. } //end iteminfo
  164.  
  165. iteminfo "weapon_rocketlauncher"
  166. {
  167.     name                    "Rocket Launcher"
  168.     model                    "models/weapons2/rocketl/rocketl.md3"
  169.     modelindex                MODELINDEX_ROCKETLAUNCHER
  170.     type                    ITEM_WEAPON
  171.     index                    INVENTORY_ROCKETLAUNCHER
  172.     respawntime            30
  173.     mins                    {-15,-15,-15}
  174.     maxs                    {15,15,15}
  175. } //end iteminfo
  176.  
  177. iteminfo "weapon_lightning"
  178. {
  179.     name                    "Lightning Gun"
  180.     model                    "models/weapons2/lightning/lightning.md3"
  181.     modelindex                MODELINDEX_LIGHTNING
  182.     type                    ITEM_WEAPON
  183.     index                    INVENTORY_LIGHTNING
  184.     respawntime            30
  185.     mins                    {-15,-15,-15}
  186.     maxs                    {15,15,15}
  187. } //end iteminfo
  188.  
  189. iteminfo "weapon_railgun"
  190. {
  191.     name                    "Railgun"
  192.     model                    "models/weapons2/railgun/railgun.md3"
  193.     modelindex                MODELINDEX_RAILGUN
  194.     type                    ITEM_WEAPON
  195.     index                    INVENTORY_RAILGUN
  196.     respawntime            30
  197.     mins                    {-15,-15,-15}
  198.     maxs                    {15,15,15}
  199. } //end iteminfo
  200.  
  201. iteminfo "weapon_plasmagun"
  202. {
  203.     name                    "Plasma Gun"
  204.     model                    "models/weapons2/plasma/plasma.md3"
  205.     modelindex                MODELINDEX_PLASMAGUN
  206.     type                    ITEM_WEAPON
  207.     index                    INVENTORY_PLASMAGUN
  208.     respawntime            30
  209.     mins                    {-15,-15,-15}
  210.     maxs                    {15,15,15}
  211. } //end iteminfo
  212.  
  213. iteminfo "weapon_bfg"
  214. {
  215.     name                    "BFG10K"
  216.     model                    "models/weapons2/bfg/bfg.md3"
  217.     modelindex                MODELINDEX_BFG10K
  218.     type                    ITEM_WEAPON
  219.     index                    INVENTORY_BFG10K
  220.     respawntime            30
  221.     mins                    {-15,-15,-15}
  222.     maxs                    {15,15,15}
  223. } //end iteminfo
  224.  
  225. iteminfo "weapon_grapplinghook"
  226. {
  227.     name                    "Grappling Hook"
  228.     model                    "models/weapons2/grapple/grapple.md3"
  229.     modelindex                MODELINDEX_GRAPPLINGHOOK
  230.     type                    ITEM_WEAPON
  231.     index                    INVENTORY_GRAPPLINGHOOK
  232.     respawntime            30
  233.     mins                    {-15,-15,-15}
  234.     maxs                    {15,15,15}
  235. } //end iteminfo
  236.  
  237. //===================================
  238. // AMMO
  239. //===================================
  240.  
  241. iteminfo "ammo_shells"
  242. {
  243.     name                    "Shells"
  244.     model                    "models/powerups/ammo/shotgunam.md3"
  245.     modelindex                MODELINDEX_SHELLS
  246.     type                    ITEM_AMMO
  247.     index                    INVENTORY_SHELLS
  248.     respawntime            30
  249.     mins                    {-15,-15,-15}
  250.     maxs                    {15,15,15}
  251. } //end iteminfo
  252.  
  253. iteminfo "ammo_bullets"
  254. {
  255.     name                    "Bullets"
  256.     model                    "models/powerups/ammo/machinegunam.md3"
  257.     modelindex                MODELINDEX_BULLETS
  258.     type                    ITEM_AMMO
  259.     index                    INVENTORY_BULLETS
  260.     respawntime            30
  261.     mins                    {-15,-15,-15}
  262.     maxs                    {15,15,15}
  263. } //end iteminfo
  264.  
  265. iteminfo "ammo_grenades"
  266. {
  267.     name                    "Grenades"
  268.     model                    "models/powerups/ammo/grenadeam.md3"
  269.     modelindex                MODELINDEX_GRENADES
  270.     type                    ITEM_AMMO
  271.     index                    INVENTORY_GRENADES
  272.     respawntime            30
  273.     mins                    {-15,-15,-15}
  274.     maxs                    {15,15,15}
  275. } //end iteminfo
  276.  
  277. iteminfo "ammo_cells"
  278. {
  279.     name                    "Cells"
  280.     model                    "models/powerups/ammo/plasmaam.md3"
  281.     modelindex                MODELINDEX_CELLS
  282.     type                    ITEM_AMMO
  283.     index                    INVENTORY_CELLS
  284.     respawntime            30
  285.     mins                    {-15,-15,-15}
  286.     maxs                    {15,15,15}
  287. } //end iteminfo
  288.  
  289. iteminfo "ammo_lightning"
  290. {
  291.     name                    "Lightning"
  292.     model                    "models/powerups/ammo/lightningam.md3"
  293.     modelindex                MODELINDEX_LIGHTNINGAMMO
  294.     type                    ITEM_AMMO
  295.     index                    INVENTORY_LIGHTNINGAMMO
  296.     respawntime            30
  297.     mins                    {-15,-15,-15}
  298.     maxs                    {15,15,15}
  299. } //end iteminfo
  300.  
  301. iteminfo "ammo_rockets"
  302. {
  303.     name                    "Rockets"
  304.     model                    "models/powerups/ammo/rocketam.dm3"
  305.     modelindex                MODELINDEX_ROCKETS
  306.     type                    ITEM_AMMO
  307.     index                    INVENTORY_ROCKETS
  308.     respawntime            30
  309.     mins                    {-15,-15,-15}
  310.     maxs                    {15,15,15}
  311. } //end iteminfo
  312.  
  313. iteminfo "ammo_slugs"
  314. {
  315.     name                    "Slugs"
  316.     model                    "models/powerups/ammo/railgunam.md3"
  317.     modelindex                MODELINDEX_SLUGS
  318.     type                    ITEM_AMMO
  319.     index                    INVENTORY_SLUGS
  320.     respawntime            30
  321.     mins                    {-15,-15,-15}
  322.     maxs                    {15,15,15}
  323. } //end iteminfo
  324.  
  325. iteminfo "ammo_bfg"
  326. {
  327.     name                    "Bfg ammo"
  328.     model                    "models/powerups/ammo/bfgam.md3"
  329.     modelindex                MODELINDEX_BFGAMMO
  330.     type                    ITEM_AMMO
  331.     index                    INVENTORY_BFGAMMO
  332.     respawntime            30
  333.     mins                    {-15,-15,-15}
  334.     maxs                    {15,15,15}
  335. } //end iteminfo
  336.  
  337. //===================================
  338. // POWERUPS
  339. //===================================
  340.  
  341. iteminfo "holdable_teleporter"
  342. {
  343.     name                    "Personal Teleporter"
  344.     model                    "models/powerups/holdable/teleporter.md3"
  345.     modelindex                MODELINDEX_TELEPORTER
  346.     type                    ITEM_POWERUP
  347.     index                    INVENTORY_TELEPORTER
  348.     respawntime            60
  349.     mins                    {-15,-15,-15}
  350.     maxs                    {15,15,15}
  351. } //end iteminfo
  352.  
  353. iteminfo "holdable_medkit"
  354. {
  355.     name                    "Medkit"
  356.     model                    "models/powerups/holdable/medkit.md3"
  357.     modelindex                MODELINDEX_MEDKIT
  358.     type                    ITEM_HEALTH
  359.     index                    INVENTORY_MEDKIT
  360.     respawntime            30
  361.     mins                    {-15,-15,-15}
  362.     maxs                    {15,15,15}
  363. } //end iteminfo
  364.  
  365. iteminfo "item_quad"
  366. {
  367.     name                    "Quad Damage"
  368.     model                    "models/powerups/instant/quad.md3"
  369.     modelindex                MODELINDEX_QUAD
  370.     type                    ITEM_POWERUP
  371.     index                    INVENTORY_QUAD
  372.     respawntime            60
  373.     mins                    {-15,-15,-15}
  374.     maxs                    {15,15,15}
  375. } //end iteminfo
  376.  
  377. iteminfo "item_enviro"
  378. {
  379.     name                    "Battle Suit"
  380.     model                    "models/powerups/instant/enviro.md3"
  381.     modelindex                MODELINDEX_ENVIRONMENTSUIT
  382.     type                    ITEM_POWERUP
  383.     index                    INVENTORY_ENVIRONMENTSUIT
  384.     respawntime            60
  385.     mins                    {-15,-15,-15}
  386.     maxs                    {15,15,15}
  387. } //end iteminfo
  388.  
  389. iteminfo "item_haste"
  390. {
  391.     name                    "Speed"
  392.     model                    "models/powerups/instant/haste_ring.md3"
  393.     modelindex                MODELINDEX_HASTE
  394.     type                    ITEM_POWERUP
  395.     index                    INVENTORY_HASTE
  396.     respawntime            60
  397.     mins                    {-15,-15,-15}
  398.     maxs                    {15,15,15}
  399. } //end iteminfo
  400.  
  401. iteminfo "item_invisibility"
  402. {
  403.     name                    "Invisibility"
  404.     model                    "models/powerups/instant/invis.md3"
  405.     modelindex                MODELINDEX_INVISIBILITY
  406.     type                    ITEM_POWERUP
  407.     index                    INVENTORY_INVISIBILITY
  408.     respawntime            60
  409.     mins                    {-15,-15,-15}
  410.     maxs                    {15,15,15}
  411. } //end iteminfo
  412.  
  413. iteminfo "item_regen"
  414. {
  415.     name                    "Regeneration"
  416.     model                    "models/powerups/instant/regen_ring.md3"
  417.     modelindex                MODELINDEX_REGEN
  418.     type                    ITEM_POWERUP
  419.     index                    INVENTORY_REGEN
  420.     respawntime            60
  421.     mins                    {-15,-15,-15}
  422.     maxs                    {15,15,15}
  423. } //end iteminfo
  424.  
  425. iteminfo "item_flight"
  426. {
  427.     name                    "Flight"
  428.     model                    "models/powerups/instant/flight_ring.md3"
  429.     modelindex                MODELINDEX_FLIGHT
  430.     type                    ITEM_POWERUP
  431.     index                    INVENTORY_FLIGHT
  432.     respawntime            60
  433.     mins                    {-15,-15,-15}
  434.     maxs                    {15,15,15}
  435. } //end iteminfo
  436.  
  437.  
  438. //===================================
  439. // CTF flags
  440. //===================================
  441.  
  442. iteminfo "team_CTF_redflag"
  443. {
  444.     name                    "Red Flag"
  445.     model                    "models/flags/r_flag.md3"
  446.     modelindex                MODELINDEX_REDFLAG
  447.     type                    ITEM_FLAG
  448.     index                    INVENTORY_REDFLAG
  449.     mins                    {-15,-15,-15}
  450.     maxs                    {15,15,15}
  451. } //end iteminfo
  452.  
  453. iteminfo "team_CTF_blueflag"
  454. {
  455.     name                    "Blue Flag"
  456.     model                    "models/flags/b_flag.md3"
  457.     modelindex                MODELINDEX_BLUEFLAG
  458.     type                    ITEM_FLAG
  459.     index                    INVENTORY_BLUEFLAG
  460.     mins                    {-15,-15,-15}
  461.     maxs                    {15,15,15}
  462. } //end iteminfo
  463.  
  464.